package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 课程评价表
 *
 * @TableName course_review
 */
@TableName(value = "course_review")
@Data
public class CourseReview implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 评价ID
     */
    @TableId(value = "review_id", type = IdType.AUTO)
    private Long reviewId;
    /**
     * 预约ID
     */
    @TableField(value = "booking_id")
    private Long bookingId;
    /**
     * 学生ID
     */
    @TableField(value = "student_id")
    private Long studentId;
    /**
     * 教师ID
     */
    @TableField(value = "teacher_id")
    private Long teacherId;
    /**
     * 课程ID
     */
    @TableField(value = "course_id")
    private Long courseId;
    /**
     * 父级评价ID
     */
    @TableField(value = "parent_id")
    private Long parentId;
    /**
     * 评分(1-5分)
     */
    @TableField(value = "rating")
    private Integer rating;
    /**
     * 评价内容
     */
    @TableField(value = "content")
    private String content;
    /**
     * 教师回复
     */
    @TableField(value = "teacher_reply")
    private String teacherReply;
    /**
     * 状态(1:正常 0:已删除)
     */
    @TableField(value = "status")
    private String status;
    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;
    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    private Date updatedTime;
}